import { post, fetch } from '@/utils/http'

export function loginByUsername (account, password) {
    const data = {
        account,
        password
    }
    return post('/login', data)
}
export function logout (username, password) {
    const data = {
        username,
        password
    }
    return post({
        url: '/api/login',
        method: 'post',
        data
    })
}
export function changePassword (params) {
    return post('/admin/user/modify/password', params)
}
